Skip to content

fix: Prevent Travel Fix Up injection inside wipe blocks#52

Open
adele-with-a-b wants to merge 1 commit intoGeekDetour:mainfrom
adele-with-a-b:wipe-fix
Open

fix: Prevent Travel Fix Up injection inside wipe blocks#52
adele-with-a-b wants to merge 1 commit intoGeekDetour:mainfrom
adele-with-a-b:wipe-fix

Conversation

@adele-with-a-b
Copy link
Copy Markdown

Bambu Studio Wipe Fix

Fixes missing chunks in Bambu Studio's G-code preview and improves print quality at brick layer transitions.

Problem

BrickLayers stores a reference to the last non-internal-perimeter travel line (last_noninternalperimeter_xy_line) and later replaces it with a Travel Fix Up move that includes a Z change. When this travel line happens to be inside a WIPE_START/WIPE_END block, the replacement breaks the wipe sequence.

This causes:

  1. Missing chunks in Bambu Studio's G-code preview — the renderer can't parse the malformed wipe sequence
  2. Incomplete nozzle wipe at brick layer transitions — the wipe path is interrupted, potentially causing strings or blobs

Fix

One-line change: added and not feature.wiping check when storing the travel line reference. This prevents BrickLayers from modifying travel moves that are part of a wipe sequence.

# Before:
if simulator.moved_in_xy:

# After:
if simulator.moved_in_xy and not feature.wiping:

Impact

  • Bambu Studio format: Fixes missing chunks in preview and print quality at transitions
  • OrcaSlicer format: No change (OrcaSlicer's wipe handling doesn't produce the same travel pattern inside wipe blocks)
  • Print quality: The wipe sequence now completes correctly, ensuring proper nozzle cleaning before layer transitions

Slicer Preview

A patched BambuStudio fork is available that re-parses G-code after post-processing scripts run, showing the BrickLayers toolpath directly in the preview without manual re-import. This wipe fix is required for the preview to render correctly.

BrickLayers was storing travel line references during wipe blocks,
then replacing them with Travel Fix Up moves that broke the wipe
sequence. Causes missing chunks in Bambu Studio preview and
incomplete nozzle wipe at brick layer transitions.

One-line fix: added 'and not feature.wiping' check.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant